<?php

namespace App\Services\Base;

use App\Services\BaseService;

class PaginateService extends BaseService
{
    /**
     * @var static 单例模式
     */
    protected static $instance;

    protected $page;
    protected $pageSize;

    public function __construct()
    {
        // 分页传参
        $this->page = \request('page', 1);
        $this->pageSize = \request('pageSize', 10);
    }

    public function getPage()
    {
        return $this->page;
    }

    public function getPageSize()
    {
        return $this->pageSize;
    }
}
